package xmu.zfw.config;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

@Data
@Component
public class ExcelTypeConf {

    @Data
    public static class ExportType{
        public String excelFile;
        public List<String> attrs;
    }
    public List<ExportType> excels;

    public static ExportType getStandardTemplate(){
        ExportType exportType = new ExportType();
        exportType.setExcelFile("classpath:static/report_std.xlsx");
        exportType.setAttrs(Arrays.asList("no", "name", "cardId", "phone", "location", "blackName",
                "blackDepartment", "question", "isSend"));
        return exportType;
    }
}
